package com.vote.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * The persistent class for the house database table.
 * 
 */
@Entity
@Table(name = "PRIZE_SETTING")
public class PrizeSetting implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -5814177943174992693L;
	private Long id ;
	private String prizeName; 	//奖品名称
	private Long prizeLevel;	//奖品级别
	private Long prizeNum;		//奖品数量	
	private Long prizeType;		//奖品类型	
	private Long winNum;		//已中奖数量
	private Long prizeRate;		//奖品概率	
	private Long status;		//状态0-无效 1-有效
	private Long isPrize;		//是否为奖品 1-是，0-否
	private String remark;		//	
	private Date startTime;		//抽奖开始时间
	private Date endTime;		//抽奖结束时间
	private Date crateTime;
	private Date updateTime;
	private String createUser;
	private String updateUser;
	
	private Long version;
	
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name = "PRIZE_NAME")
	public String getPrizeName() {
		return prizeName;
	}
	public void setPrizeName(String prizeName) {
		this.prizeName = prizeName;
	}
	@Column(name = "PRIZE_LEVEL")
	public Long getPrizeLevel() {
		return prizeLevel;
	}
	public void setPrizeLevel(Long prizeLevel) {
		this.prizeLevel = prizeLevel;
	}
	@Column(name = "PRIZE_NUM")
	public Long getPrizeNum() {
		return prizeNum;
	}
	public void setPrizeNum(Long prizeNum) {
		this.prizeNum = prizeNum;
	}
	@Column(name = "PRIZE_TYPE")
	public Long getPrizeType() {
		return prizeType;
	}
	public void setPrizeType(Long prizeType) {
		this.prizeType = prizeType;
	}
	@Column(name = "WIN_NUM")
	public Long getWinNum() {
		return winNum;
	}
	public void setWinNum(Long winNum) {
		this.winNum = winNum;
	}
	@Column(name = "PRIZE_RATE")
	public Long getPrizeRate() {
		return prizeRate;
	}
	public void setPrizeRate(Long prizeRate) {
		this.prizeRate = prizeRate;
	}
	@Column(name = "STATUS")
	public Long getStatus() {
		return status;
	}
	public void setStatus(Long status) {
		this.status = status;
	}
	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Column(name = "START_TIME")
	@Temporal(TemporalType.TIMESTAMP)
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	@Column(name = "END_TIME")
	@Temporal(TemporalType.TIMESTAMP)
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}	
	@Column(name = "CREATE_TIME")
	@Temporal(TemporalType.TIMESTAMP)
	public Date getCrateTime() {
		return crateTime;
	}
	public void setCrateTime(Date crateTime) {
		this.crateTime = crateTime;
	}
	@Column(name = "UPDATE_TIME")
	@Temporal(TemporalType.TIMESTAMP)
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Column(name = "CREATE_USER")
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	@Column(name = "UPDATE_USER")
	public String getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	
	@Version
	@Column(name = "VERSION")
	public Long getVersion() {
		return version;
	}
	public void setVersion(Long version) {
		this.version = version;
	}	
	@Column(name = "IS_PRIZE")
	public Long getIsPrize() {
		return isPrize;
	}
	public void setIsPrize(Long isPrize) {
		this.isPrize = isPrize;
	}
	
}